package com.fadis.data;

public final class ZSetItem{
    public String value;
    public double score;

    public ZSetItem(String value, double score) {
        this.value = value;
        this.score = score;
    }

    public ZSetItem() {
    }



    /**
     * 给zset用于集合判断
     * @param obj
     * @return
     */
    @Override
    public boolean equals(Object obj) {
        return (obj instanceof ZSetItem)
                && ((ZSetItem) obj).value.equals(this.value);
    }

    @Override
    public int hashCode() {
        return this.value.hashCode();
    }
}